<?php
namespace App\Model\Entity;


use Swoft\Db\Annotation\Mapping\Column;
use Swoft\Db\Annotation\Mapping\Entity;
use Swoft\Db\Annotation\Mapping\Id;
use Swoft\Db\Eloquent\Model;

/**
 * Class AccountEntity
 * @package App\Model\Entity
 * @Entity(table="account")
 */
class AccountEntity extends Model
{
    /**
     * @Id(incrementing=true)
     *
     * @Column(name="id", prop="id")
     * @var int|null
     */
    private $id;

    /**
     * @Column(name="item_id")
     * @var string|null
     */
    private $itemID;

    /**
     * @Column(name="account")
     * @var string|null
     */
    private $account;


    /**
     * @Column(name="password", hidden=true)
     * @var string|null
     */
    private $password;

    /**
     * @Column(name="frozen_state")
     * @var int|null
     */
    private $frozenState;

    /**
     * @Column(name="delete_state")
     * @var int|null
     */
    private $deleteState;

    /**
     * @Column(name="created_at")
     * @var string|null
     */
    private $createdAt;

    /**
     * @Column(name="updated_at")
     * @var string|null
     */
    private $updatedAt;

    /**
     * @return int|null
     */
    public function getId(): ?int
    {
        return $this->id;
    }

    /**
     * @param int|null $id
     */
    public function setId(?int $id): void
    {
        $this->id = $id;
    }

    /**
     * @return string|null
     */
    public function getItemID(): ?string
    {
        return $this->itemID;
    }

    /**
     * @param string|null $itemID
     */
    public function setItemID(?string $itemID): void
    {
        $this->itemID = $itemID;
    }

    /**
     * @return string|null
     */
    public function getAccount(): ?string
    {
        return $this->account;
    }

    /**
     * @param string|null $account
     */
    public function setAccount(?string $account): void
    {
        $this->account = $account;
    }

    /**
     * @return string|null
     */
    public function getPassword(): ?string
    {
        return $this->password;
    }

    /**
     * @param string|null $password
     */
    public function setPassword(?string $password): void
    {
        $this->password = $password;
    }

    /**
     * @return int|null
     */
    public function getFrozenState(): ?int
    {
        return $this->frozenState;
    }

    /**
     * @param int|null $frozenState
     */
    public function setFrozenState(?int $frozenState): void
    {
        $this->frozenState = $frozenState;
    }

    /**
     * @return int|null
     */
    public function getDeleteState(): ?int
    {
        return $this->deleteState;
    }

    /**
     * @param int|null $deleteState
     */
    public function setDeleteState(?int $deleteState): void
    {
        $this->deleteState = $deleteState;
    }

    /**
     * @return string|null
     */
    public function getCreatedAt(): ?string
    {
        return $this->createdAt;
    }

    /**
     * @param string|null $createdAt
     */
    public function setCreatedAt(?string $createdAt): void
    {
        $this->createdAt = $createdAt;
    }

    /**
     * @return string|null
     */
    public function getUpdatedAt(): ?string
    {
        return $this->updatedAt;
    }

    /**
     * @param string|null $updatedAt
     */
    public function setUpdatedAt(?string $updatedAt): void
    {
        $this->updatedAt = $updatedAt;
    }


}
